home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / bin / xcursor-config < prev    next >
Text File  |  2006-04-12  |  1KB  |  96 lines

  1. #! /bin/sh
  2.  
  3. prefix="/usr/X11R6"
  4. exec_prefix="/usr/bin"
  5. libdir="/usr/lib"
  6. hardcode_libdir_flag_spec=
  7. includedir="/usr/include"
  8. version="1.1.2"
  9.  
  10. usage()
  11. {
  12.   cat <<EOF
  13. Usage: xcursor-config [OPTIONS] [LIBRARIES]
  14. Options:
  15.  [--prefix[=DIR]]
  16.  [--exec-prefix[=DIR]]
  17.  [--version]
  18.  [--libs]
  19.  [--cflags]
  20. EOF
  21.   exit $1
  22. }
  23.  
  24. if test $# -eq 0 ; then
  25.   usage 1 1>&2
  26. fi
  27.  
  28. while test $# -gt 0 ; do
  29.   case "$1" in
  30.   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  31.   *) optarg= ;;
  32.   esac
  33.  
  34.   case $1 in
  35.   --prefix=*)
  36.     prefix=$optarg
  37.     local_prefix=yes
  38.     ;;
  39.   --prefix)
  40.     echo_prefix=yes
  41.     ;;
  42.   --exec-prefix=*)
  43.     exec_prefix=$optarg
  44.     exec_prefix_set=yes
  45.     local_prefix=yes
  46.     ;;
  47.   --exec-prefix)
  48.     echo_exec_prefix=yes
  49.     ;;
  50.   --version)
  51.     echo $version
  52.     exit 0
  53.     ;;
  54.   --cflags)
  55.     echo_cflags=yes
  56.     ;;
  57.   --libs)
  58.     echo_libs=yes
  59.     ;;
  60.   *)
  61.     usage 1 1>&2
  62.     ;;
  63.   esac
  64.   shift
  65. done
  66.  
  67. if test "$local_prefix" = "yes" ; then
  68.     if test "$exec_prefix_set" != "yes" ; then
  69.       exec_prefix=$prefix
  70.     fi
  71. fi
  72.  
  73. if test "$echo_prefix" = "yes" ; then
  74.  echo $prefix
  75. fi
  76.  
  77. if test "$echo_exec_prefix" = "yes" ; then
  78.  echo $exec_prefix
  79. fi
  80.  
  81. if test "$echo_cflags" = "yes" ; then
  82.  cflags="-I${includedir}"
  83.  echo $cflags
  84. fi
  85.  
  86. if test "$echo_libs" = "yes" ; then
  87.  libs="-lXcursor"
  88.  if test "${libdir}" != "/usr/lib" ; then
  89.   echo ${hardcode_libdir_flag_spec} -L${libdir} $libs
  90.  else
  91.   echo $libs
  92.  fi
  93. fi
  94.  
  95. # EOF
  96.